﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/MasterPage.master"
    CodeFile="PackingAndUnpacking.aspx.cs" Inherits="PackingAndUnpacking._Default" %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<%@ Register Src="~/Users Control/HeadMenu.ascx" TagName="HeadMenu" TagPrefix="uc1" %>
<asp:Content ContentPlaceHolderID="ContentPlaceHolder2" runat="server" ID="ContentMenu">
    <uc1:HeadMenu runat="server" ID="HeadMenu" />
</asp:Content>
<asp:Content ContentPlaceHolderID="ContentPlaceHolder1" runat="server" ID="content1">
    <telerik:RadScriptManager runat="server" AsyncPostBackTimeout="36000" ID="RadScriptManager1">
    </telerik:RadScriptManager>
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
        <style type="text/css">
            .dot-inactive
            {
                background-image: url(images/Dot1.jpg);
                background-repeat: repeat-x;
                width: 100%;
                height: 8px;
            }
            .dot-active
            {
                background-image: url(images/Dot.jpg);
                background-repeat: repeat-x;
                width: 100%;
                height: 8px;
            }
            .tool-label-inactive
            {
                color: #9f9f9f;
                font-size: 12px;
                font-weight: bold;
            }
            a.tool-label-inactive
            {
                color: #9f9f9f;
                font-size: 12px;
                font-weight: bold;
            }
            a.tool-label-active
            {
                color: #000000;
                font-size: 12px;
                font-weight: bold;
            }
            .tool-label-active
            {
                color: #000000;
                font-size: 12px;
                font-weight: bold;
            }
        </style>
        <!-- java script section -->
    </telerik:RadCodeBlock>
    <telerik:RadAjaxManager DefaultLoadingPanelID="RadAjaxLoadingPanel1" ID="RadAjaxManager1"
        runat="server">
        <AjaxSettings>
            <%--<telerik:AjaxSetting AjaxControlID="RadGrid1">
                <UpdatedControls>                                       
                    <telerik:AjaxUpdatedControl ControlID="pnlMain" LoadingPanelID="RadAjaxLoadingPanel1" />                                                        
                    <telerik:AjaxUpdatedControl ControlID="RadWindowManager1" />                                                         
                </UpdatedControls>
            </telerik:AjaxSetting> --%>
            <telerik:AjaxSetting AjaxControlID="lableOrderGenerator">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="pnlMain" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="ImgItemGenreted">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="pnlMain" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="LinkReturnCase">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="pnlMain" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="ImageReturnedCase">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="pnlMain" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="lnkAddNewOrder">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="pnlMain" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="btnPackCase">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="pnlMain" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="imgEditOrder">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="pnlMain" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="ComboBoxOrderID">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="pnlMain" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel Skin="Vista" runat="server" ID="RadAjaxLoadingPanel1" />
    <asp:Panel ID="pnlMain" runat="server">
        <table width="100%">
            <tr>
                <td align="center">
                    <asp:Panel runat="server" ID="pnlToolbar">
                        <table cellpadding="0" cellspacing="0">
                            <tr>
                                <td align="center">
                                    <asp:ImageButton runat="server" ID="ImgItemGenreted" ImageUrl="~/images/Order_Generated1.jpg"
                                        BorderWidth="0" OnClick="ImgItemGenreted_Click" Width="43" Height="39" />
                                </td>
                                <td style="width: 10%;">
                                    <div runat="server" id="Dot1" class="dot-inactive">
                                    </div>
                                </td>
                                <td align="center" style="width: 52px">
                                    <asp:Image runat="server" ID="ImgPackCase" ImageUrl="~/images/Pack_Case1.jpg" BorderWidth="0" />
                                </td>
                                <td style="width: 10%;">
                                    <div class="dot-inactive">
                                    </div>
                                </td>
                                <td align="center">
                                    <img src="images/Deliver1.jpg" border="0" />
                                </td>
                                <td style="width: 15%;">
                                </td>
                                <td align="center">
                                    <asp:ImageButton runat="server" ID="ImageReturnedCase" ImageUrl="~/images/Returned_Case1.jpg"
                                        BorderWidth="0" OnClick="ImageReturnedCase_Click" Width="47" Height="42" />
                                </td>
                                <td style="width: 10%;">
                                    <div runat="server" id="Dot2" class="dot-inactive">
                                    </div>
                                </td>
                                <td align="center">
                                    <asp:ImageButton runat="server" ID="ImageUnpackCase" ImageUrl="~/images/Unpack_Case.jpg"
                                        BorderWidth="0" Width="38" Height="53" />
                                </td>
                                <td style="width: 10%;">
                                    <div class="dot-inactive">
                                    </div>
                                </td>
                                <td align="center">
                                    <img src="images/To_Reconcile1.jpg" border="0" />
                                </td>
                            </tr>
                            <tr>
                                <td align="center">
                                    <asp:LinkButton runat="server" ID="lableOrderGenerator" CssClass="tool-label-inactive"
                                        Text="<%$ Resources:Lang, Order_Generated%>" runat="server" OnClick="lableOrderGenerator_Click" />
                                </td>
                                <td>
                                </td>
                                <td align="center" style="width: 52px">
                                    <asp:Label CssClass="tool-label-inactive" ID="lablePackCase" Text="<%$ Resources:Lang, Pack_Cash%>"
                                        runat="server" />
                                </td>
                                <td>
                                </td>
                                <td align="center" class="tool-label-inactive">
                                    <asp:Label ID="Label2" Text="<%$ Resources:Lang, To_Deliver%>" runat="server" />
                                </td>
                                <td>
                                </td>
                                <td align="center">
                                    <asp:LinkButton runat="server" ID="LinkReturnCase" CssClass="tool-label-inactive"
                                        Text="<%$ Resources:Lang, Returned_Cash%>" runat="server" OnClick="LinkReturnCase_Click" />
                                </td>
                                <td>
                                </td>
                                <td align="center">
                                    <asp:LinkButton runat="server" ID="LinkUnpackCase" CssClass="tool-label-inactive"
                                        Text="<%$ Resources:Lang, Unpack_Cash%>" runat="server" />
                                </td>
                                <td>
                                </td>
                                <td align="center" class="tool-label-inactive">
                                    <asp:Label ID="Label5" Text="<%$ Resources:Lang, To_Reconcile%>" runat="server" />
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                </td>
            </tr>
            <tr>
                <td>
                    <div style="width: 100%;">
                        <div style="float: left; width: 14px; padding: 10px;">
                            <img src="images/add_new.jpg" />
                        </div>
                        <div style="float: left; width: auto; padding-top: 11px;">
                            <asp:LinkButton runat="server" ID="lnkAddNewOrder" Font-Bold="true" Text="<%$ Resources:Lang, Add_new_order%>"
                                OnClick="lnkAddNewOrder_Click" />
                        </div>
                        <div style="float: left; width: auto; padding-top: 11px; margin-left: 250px;">
                            <asp:Label runat="server" Font-Bold="true" ID="lblMessage" />
                        </div>
                    </div>
                </td>
            </tr>
            <tr>
                <td style="padding-left: 10px;">
                    <table cellpadding="2" cellspacing="2">
                        <tr>
                            <td>
                                <!-- data binding mode -->
                                <asp:Panel runat="server" BorderStyle="Solid" BorderColor="Gray" BorderWidth="1" ID="pnlOrderDetailsEdit" Visible="false">
                                    <table cellpadding="2" cellspacing="2" border="0">
                                        <tr>
                                            <td style="height: 20px; width:150px;" valign="top">
                                                <div style="padding: 5px; padding-left: 0px;">
                                                    <asp:Label runat="server" Font-Bold="true" ID="Label1" Text="<%$ Resources:Lang, OrderID%>" />
                                                </div>
                                                <asp:Label runat="server" ID="lblOrderID" Text="" />
                                            </td>
                                            <td valign="top" width="350">
                                                <asp:DataList CellPadding="5" CellSpacing="2" BorderWidth="0" ShowHeader="true" runat="server"
                                                    ID="binddatalist" RepeatColumns="1">
                                                    <HeaderTemplate>
                                                        <th>
                                                            Denom
                                                        </th>
                                                        <th>
                                                            Value
                                                        </th>
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <td>
                                                            <%# DataBinder.Eval(Container.DataItem, "DenomCode")%> :
                                                        </td>
                                                        <td>
                                                            <asp:HiddenField runat="server" ID="hiddDenomCode" Value='<%# DataBinder.Eval(Container.DataItem, "DenomCode")%>' />
                                                            <asp:HiddenField runat="server" ID="hiddDenomID" Value='<%# DataBinder.Eval(Container.DataItem, "DenomID")%>' />
                                                            <asp:HiddenField runat="server" ID="hiddOrderDetailID" Value='<%# DataBinder.Eval(Container.DataItem, "OrderDetailID")%>' />
                                                            <asp:Label runat="server" ID="lblOrderValue" Text='<%# DataBinder.Eval(Container.DataItem, "OrderValue", "{0:n}")%>' />
                                                        </td>
                                                    </ItemTemplate>
                                                </asp:DataList>
                                            </td>
                                        </tr>
                                    </table>
                                </asp:Panel>
                                <!-- end edit mode -->
                                <asp:Panel runat="server" ID="pnlOrderDetailsArea" BorderStyle="Solid" BorderColor="Gray" BorderWidth="1" Visible="false">
                                    <table cellpadding="2" cellspacing="2" border="0">
                                        <tr>
                                            <td style="height: 20px;" valign="top">
                                                <div style="padding: 5px; padding-left: 0px;">
                                                    <asp:Label runat="server" Font-Bold="true" ID="lblSelectOrder" Text="<%$ Resources:Lang, SelectOrder%>" />
                                                </div>
                                                <telerik:RadComboBox AutoPostBack="true" runat="server" OnTextChanged="ComboBoxOrderID_TextChanged"
                                                    OnSelectedIndexChanged="ComboBoxOrderID_SelectedIndexChanged" ID="ComboBoxOrderID"
                                                    AllowCustomText="false" MarkFirstMatch="true" />
                                            </td>
                                            <td valign="top" width="350">
                                                <asp:DataList CellPadding="2" CellSpacing="2" BorderWidth="0" ShowHeader="true" runat="server"
                                                    ID="datalistDenom" RepeatColumns="1">
                                                    <HeaderTemplate>
                                                        <th>
                                                            Denom
                                                        </th>
                                                        <th>
                                                            Value
                                                        </th>
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <td>
                                                            <%# DataBinder.Eval(Container.DataItem, "DenomCode")%>:
                                                        </td>
                                                        <td>
                                                            <asp:HiddenField runat="server" ID="hiddDenomCode" Value='<%# DataBinder.Eval(Container.DataItem, "DenomCode")%>' />
                                                            <asp:HiddenField runat="server" ID="hiddDenomID" Value='<%# DataBinder.Eval(Container.DataItem, "DenomID")%>' />
                                                            <asp:HiddenField runat="server" ID="hiddOrderDetailID" Value='<%# DataBinder.Eval(Container.DataItem, "OrderDetailID")%>' />
                                                            <telerik:RadNumericTextBox runat="server" ID="txtDenomValue" DbValue='<%# DataBinder.Eval(Container.DataItem, "OrderValue")%>' />
                                                            <%--<asp:TextBox runat="server" ID="txtDenomValue" Text='<%# DataBinder.Eval(Container.DataItem, "OrderValue", "{0:n}")%>' />--%>
                                                        </td>
                                                    </ItemTemplate>
                                                </asp:DataList>
                                            </td>
                                        </tr>
                                    </table>
                                </asp:Panel>
                                <table cellpadding="2" width="100%" cellspacing="2" border="0">
                                    <tr>
                                        <td align="right" colspan="2" valign="middle">
                                            <div style="float: right; width: auto;">
                                                <div style="float: left; width: 36px;">
                                                    <asp:ImageButton runat="server" ID="btnPackCase" Visible="false" ImageUrl="~/images/Packed.jpg"
                                                        Width="30" Height="45" OnClick="btnPackCase_Click" />
                                                    <asp:ImageButton runat="server" ID="imgEditOrder" Visible="false" ImageUrl="~/images/icons/edit.gif"
                                                        Width="20" Height="20" OnClick="imgEditOrder_Click" />
                                                </div>
                                                <div style="float: left; with: auto; padding-top: 18px; padding-left: 5px;">
                                                    <asp:Label runat="server" ID="lblpackcase" Visible="false" Font-Bold="true" Text="<%$ Resources:Lang, Pack_Order%>" />
                                                </div>
                                            </div>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>                   
                </td>
            </tr>
        </table>
        <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
        </telerik:RadWindowManager>
    </asp:Panel>
</asp:Content>
